From: Florian Müllner Date: Tue, 22 Oct 2013 00:03:10 +0000 (+0200) Subject: notificationDaemon: Pass the correct id to makeButton() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3166 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=61c5b8e7d26a931a15ae0e215da4aac93f688703;p=gnome-shell.git notificationDaemon: Pass the correct id to makeButton() The function expects the action's ID, not the notification's one. https://bugzilla.gnome.org/show_bug.cgi?id=710596 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 42dedbdaf..22e4b9e37 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -436,7 +436,7 @@ const FdoNotificationDaemon = new Lang.Class({ if (actionId == 'default') { hasDefaultAction = true; } else { - notification.addButton(this._makeButton(id, label, useActionIcons), Lang.bind(this, function() { + notification.addButton(this._makeButton(actionId, label, useActionIcons), Lang.bind(this, function() { this._emitActionInvoked(ndata.id, actionId); })); }